import re

from 成都租房.chaojiyong import Chaojiying_Client

# chaojiying = Chaojiying_Client('weitezhu', 'zhuweiwei666', '96001')  # 用户中心>>软件ID 生成一个替换 96001
# im = open('1.png', 'rb').read()  # 本地图片文件路径 来替换 a.jpg 有时WIN系统须要//
# print(chaojiying.PostPic(im, 1010))


s = "background-image: url(//static8.ziroom.com/phoenix/pc/images/price/new-list/1.png);background-position: -85.6px"

# 字体图片地址
img_addr = re.findall(r"\((.*?)\)", s)

index = re.findall(r'position: -(.*?)px', s)
# 存放价格数字 差值的列表

print(img_addr, index)
